package com.yuyou.fn.tms.vo;

import com.yuyou.fn.platform.entity.City;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

/**
 * Created by lzh on 2019/1/24.
 */
public class TmsCity {
    @ApiModelProperty("城市id")
    private Long cityId ;//城市id

    @ApiModelProperty("省份id")
    private Long cityProId ;//省份id

    @ApiModelProperty("城市名称")
    private String cityName ;//城市名称

    @ApiModelProperty("最后修改时间")
    private Date cityModifyTime ;//最后修改时间

    @ApiModelProperty("状态(0正常,1停用)")
    private Integer cityStatus ;//状态(0正常,1停用)

    @ApiModelProperty("是否删除(0正常，1删除)")
    private Integer cityIsDeleted ;//是否删除(0正常，1删除)

    public TmsCity(City city){
        this.setCityId(city.getCityId());//城市id
        this.setCityProId(city.getProvinceId());//省份id
        this.setCityName(city.getCityName());//城市名称
        this.setCityModifyTime(city.getUpdateTime());//最后修改时间
        this.setCityStatus(city.getStatus());//状态(0正常,1停用)
        this.setCityIsDeleted(0);//是否删除(0正常，1删除)
    }

    public Long getCityId() {
        return cityId;
    }

    public void setCityId(Long cityId) {
        this.cityId = cityId;
    }

    public Long getCityProId() {
        return cityProId;
    }

    public void setCityProId(Long cityProId) {
        this.cityProId = cityProId;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public Date getCityModifyTime() {
        return cityModifyTime;
    }

    public void setCityModifyTime(Date cityModifyTime) {
        this.cityModifyTime = cityModifyTime;
    }

    public Integer getCityStatus() {
        return cityStatus;
    }

    public void setCityStatus(Integer cityStatus) {
        this.cityStatus = cityStatus;
    }

    public Integer getCityIsDeleted() {
        return cityIsDeleted;
    }

    public void setCityIsDeleted(Integer cityIsDeleted) {
        this.cityIsDeleted = cityIsDeleted;
    }
}
